<!--<?php
print<<<EOT
-->
<div class="menuApp">
	<div class="appNav_top"></div>
	<div class="appNav">
		<ul class="one">
			<li id="app_home"><a href="u.php"><img src="u/images/icon/home.png" />首页</a></li>
			<li id="app_friend"><a href="u.php?a=friend"><img src="u/images/icon/friend.png" />朋友</a></li>
			<li id="app_collection"><a href="apps.php?q=collection" style="background:url(u/images/icon/.png) 0 center no-repeat;"><img src="u/images/icon/collection.png" />收藏</a></li>
		</ul>
		<ul class="one">
			<li id="app_weibo"><a href="apps.php?q=weibo&do=topics"><img src="u/images/icon/record.png" />新鲜事</a></li>
<!--
EOT;
if($db_dopen){print <<<EOT
-->
			<li id="app_diary"><a href="apps.php?q=diary"><img src="u/images/icon/log.png" />日志</a></li>
<!--
EOT;
}if($db_phopen){print <<<EOT
-->
			<li id="app_photos"><a href="apps.php?q=photos"><img src="u/images/icon/albums.png" />相册</a></li>
<!--
EOT;
}if($db_post_open){print <<<EOT
-->
			<li id="app_article"><a href="apps.php?q=article"><img src="u/images/icon/posts.png" />帖子</a></li>
<!--			
EOT;
}if($db_activity_open){print <<<EOT
-->			
			<li id="app_activity"><a href="apps.php?q=activity"><img src="u/images/icon/activity.png" />活动</a></li>
<!--
EOT;
}if($db_groups_open){print <<<EOT
-->
			<li id="app_groups"><a href="apps.php?q=groups"><img src="u/images/icon/groups.png" />群组</a></li>
<!--
EOT;
}print <<<EOT
-->
		
<!--
EOT;
if(!trim($o_hot_groups,',') || strpos($o_hot_groups,','.$winddb[groupid].',') !== false || ($winddb[groupid] == -1 && strpos($o_hot_groups,','.$winddb[memberid].',') !== false)){
	$popedom = true;
}else{
	$popedom = false;
}
if($db_hot_open){print <<<EOT
-->
			<li id="app_hot"><a href="apps.php?q=hot"><img src="u/images/icon/hot.png" />热榜</a></li>
<!--
EOT;
	}
	if($db_job_isopen){
		$jobnum = ($winddb['jobnum']>0) ? "(".$winddb['jobnum'].")" : "";
print <<<EOT
-->
			<li id="app_jobcenter"><a href="jobcenter.php"><img src="u/images/icon/jobcenter.png" />任务</a></li>
<!--
EOT;
	}
	if($db_toolifopen){
print <<<EOT
-->
			<li id="app_toolcenter"><a href="profile.php?action=toolcenter"><img src="u/images/icon/toolcenter.png" />道具</a></li>
<!--
EOT;
}print <<<EOT
-->
		</ul>
<!--
EOT;
$app_array = getUserApplist();
if($db_appifopen && S::isArray($app_array)){
print <<<EOT
-->
		<ul class="two">
<!--
EOT;
foreach ($app_array as $key => $value) {print <<<EOT
-->
				<li id="app_{$value[appid]}"><a href="apps.php?id=$value[appid]" >{$value[appname]}</a></li>
<!--
EOT;
}print <<<EOT
-->
		</ul>
<!--
EOT;
}print <<<EOT
-->
	<div class="tac">
<!--
EOT;
if ($db_appifopen) {print <<<EOT
-->
		<a href="u.php?a=myapp">添加</a>&nbsp;|&nbsp;<!--
EOT;
}print <<<EOT
--><a href="u.php?a=myapp&action=my">管理</a>
	</div>
	</div>
	<div class="appNav_bottom"></div>
</div>
<!--
EOT;
S::gp('$q','$a');
$q = $q?$q:$a;{print <<<EOT
-->
<!--
EOT;
}print <<<EOT
-->

<script language="JavaScript">
setCurrent('app_$q','app_home','current');
</script>
<!--
EOT;
?>